<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.system.publish.apptree.AppTree"/>
<title>应用发布编辑页面</title>
<script language="javascript">

	function appTree_save_onclick(panel,page){
		
		var tree = page.find("appTree");
		
	 	var appIds = tree.getCheckNodesIds("leaf");
	 	if(appIds=="") {
	 		alert("请勾选应用！");
	 		return;
	 	}
	 	
	 	var appNames = tree.getCheckNodesCaptions("leaf");

	 	page.windows.returnIds = appIds;
	 	page.windows.returnCaptions = appNames;
	 	
	 	page.windows.closeWindow(); 
	}
	
</script>
